const fs = require('fs');
var request = require('request');
const pageUrl = 'https://raw.githubusercontent.com/small-dream/China_Province_City/master/2019%E5%B9%B49%E6%9C%88%E4%B8%AD%E5%8D%8E%E4%BA%BA%E6%B0%91%E5%85%B1%E5%92%8C%E5%9B%BD%E5%8E%BF%E4%BB%A5%E4%B8%8A%E8%A1%8C%E6%94%BF%E5%8C%BA%E5%88%92%E4%BB%A3%E7%A0%81.json'
async function testResult() {
    let result1 = await request(pageUrl).pipe(fs.createWriteStream('area_data.json'))
    // console.log(result1)
}

testResult()